import ThemesContext from "./theme-context";



export default  function ThemeButton(props){
    return(
        <ThemesContext.Consumer>
            {
                //
                ({themes,toggleTheme})=>(
                    <button onClick={toggleTheme} style={{width: "100px",height:"50px",background: themes}}>
                        按钮
                    </button>
                )
            }
        </ThemesContext.Consumer>
    )
}
